﻿namespace Datav.Design
{
    public static class CacheKeys
    {
        public const string Cache_GetUserByMobile = "Cache:GetUserByMobile:";

        public const string UserLoginTokenHashKey = "Hash:Users:LoginTokens";

        public const string VierificationCodeHashKey = "Hash:VCode:";

        public const string InspectionUserLoginTokenHashKey = "Hash:InspectionUsers:LoginTokens";

        public const string UserLeftSecondsHashKey = "Hash:Users:LeftSeconds";

        public const string SectionStatisticsKey = "Cache:SectionById:";

        public const string Cache_GetQuestionById = "Cache:QuestionById:";

        public const string Cache_GetOptionsByTopicId = "Cache:OptionsByTopicId:";

        public const string Cache_GetTopicByParentId = "Cache:Cache_GetTopicByParentId:";

        public const string Cache_GetProductListById = "Cache:Cache_GetProductListById:";

        public const string Cache_GetCourseSectionHistoryById = "Cache:GetCourseSectionHistoryById:";

        public const string Cache_GetTeacherId = "Cache:Cache_GetTeacherId:";

        public const string Cache_GetFreeSection = "Cache:Cache_GetFreeSection:";

        public const string Cache_OnePlusXCertificateLevel = "Cache:OnePlusXCertificateLevel:";

        public const string Cache_GetCertificateTopicByTopicId = "Cache:GetCertificateTopicByTopicId:";

        public const string Cache_GetSubTopicByParentId = "Cache:GetSubTopicByParentId:";

        public const string Cache_GetCaseById = "Cache:GetCaseById:";

        public const string Cache_GetTopicPostionsByCaseId = "Cache:GetTopicPostionsByCaseId:";

        public const string Cache_GetSkillTopicsBySkillId = "Cache:Cache_GetSkillTopicsBySkillId:";

        public const string Cache_GetCaseRulesByCaseId = "Cache:GetCaseRulesByCaseId:";

        public const string Cache_GetCasePositionsByCaseId = "Cache:GetCasePositionsByCaseId:";

        public const string Cache_GetTopicById = "Cache:Cache_GetTopicById:";

        public const string Cache_GetParentQuestionsById = "Cache:GetParentQuestionsById:";

        public const string Cache_GetExamById = "Cache:Cache_GetExamById:";

        public const string Cache_GetGradeById = "Cache:Cache_GetGradeById:";

        public const string BigDataPositionStatus = "BigDataPosition:BigDataPositionStatus:";

        public const string Cache_GetTopicFilesByTopicId = "Cache:Cache_GetTopicFilesByTopicId:";

        public const string Cache_GetRelationTopicByTopicId = "Cache:Cache_GetRelationTopicByTopicId:";

        public const string Cache_GetPositionTopicCountByCaseId = "Cache:Cache_GetPositionTopicCountByCaseId:";

        public const string Cache_GetAnswerOptionByTopicId = "Cache:Cache_GetAnswerOptionByTopicId:";

        public const string Cache_GetRightAnswerOptionByTopicId = "Cache:Cache_GetRightAnswerOptionByTopicId:";

        public const string Cache_GetSourceOptionsByTopicId = "Cache:Cache_GetSourceOptionsByTopicId:";

        public const string Cache_GetGradeExamGradeId = "Cache:Cache_GradeExamGradeId:";

        public const string Cache_UserExamNew = "Cache:Cache_UserExamNew:";

        //案例所有关联题
        public const string Cache_GetMulTopicByCaseId = "Cache:Cache_GetMulTopicByCaseId:";

        public const string Cache_GetTopicByCaseId = "Cache:Cache_GetTopicByCaseId:";

        /// <summary>
        /// 用户提交答案 获取题目的答案信息
        /// </summary>
        public const string SubmitAnswer_QuestionInfoKey = "Cache:SubmitAnswer:QuestionInfo:";

        /// <summary>
        /// 用户提交答案 分布式锁 用于防止重复作答
        /// </summary>
        public const string SubmitAnswer_GradeKey = "Lock:Skip:SubmitAnswer:";
    }

    /// <summary>
    ///
    /// </summary>
    public class WdCommonConstants
    {
        /// <summary>
        /// 学生答案字段不存在
        /// </summary>
        public const int StudentAnswerField = 1000;

        /// <summary>
        /// 学生答案字段格式不正确
        /// </summary>
        public const int StudentAnswerFieldFormat = 1001;
    }
}